<template>
	<uni-nav-bar left-icon="back" left-text="返回" right-text="兑充记录" title="兑充" :border="false" @clickLeft="back" @clickRight="more"></uni-nav-bar>
	<view class="content">
		<view class="xuaz">
			<view class="lable-name">兑充类型</view>
			<view class="lable-select">
				<uni-data-select v-model="wallet" :localdata="walletData" @change="qiehuan()">
					
				</uni-data-select>
			</view>
		</view>
		
		
		<view class="xuaz">
			<view class="lable-name" style="width: 20%;">兑换金额</view>
			<view class="lable-select" style="width: 80%;">
				<input type="digit" v-model="amount" style="font-size: 14px;" placeholder="请输入兑换金额"/>
			</view>
		</view>
		<view class="xuaz">
			<view class="lable-name" style="width: 20%;">交易密码</view>
			<view class="lable-select" style="width: 80%;">
				<input type="safe-password" v-model="pay_pass" style="font-size: 14px;" placeholder="交易密码"/>
			</view>
		</view>
	</view>
	
	<view class="content" style="padding: 1rem;text-align: center;">
		<button style="width: 90%;background: #dd5154;color: white;height: 2.5rem; line-height: 2.5rem;">确认提交</button>
	</view>
	
</template>

<script>
	export default {
		data() {
			return {
				wallet:null,
				withdraw:null,
				walletData:[
					// {
					// 	value:0,
					// 	text:'佣金钱包(余额：0.00)'
					// },
					// {
					// 	value:1,
					// 	text:'复利钱包(余额：0.00)'
					// },
					// {
					// 	value:2,
					// 	text:'利息钱包(余额：0.00)'
					// }
				],
			};
		},
		methods: {
			back(){
				uni.navigateBack()
			},
			more(){
				uni.navigateTo({
					url:"/pages/exchangeList/exchangeList"
				})
			},
			qiehuan(data){
				console.log(data)
			}
		}
	}
</script>

<style lang="scss">
	page{
		background: #f4f4f4;
	}
	.xuaz{
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin: 0 0.6rem;
		padding: 1rem;
		border-bottom: 1px solid #f6f6f6 !important;
	}
	.lable-name{
		width: 30%;
		font-weight: bold;
		font-size: 14px;
	}
	.lable-select{
		width: 60%;
		display: flex;
	}
	.content{
		background: #fff;
		display: flex;
		flex-direction: column;
		margin-top: .7rem;
	}
	
	.lable-select >input{
		width: 100%;
	}
</style>
